package com.tulele.vtool.bus.mapper;

import com.tulele.vtool.bus.model.PunchClockArticleInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component(value = "punchClockArticleInfoMapper")
public interface PunchClockArticleInfoMapper {

    /**
     * 添加打卡文章信息
     * @param punchClockArticleInfo
     * @return
     */
    int addPunchClockArticleInfo(PunchClockArticleInfo punchClockArticleInfo);

    /**
     * 更新打卡文章信息
     * @param punchClockArticleInfo
     * @return
     */
    int updPunchClockArticleInfo(PunchClockArticleInfo punchClockArticleInfo);

    /**
     * 获取当天打卡文章信息
     * @return
     */
    PunchClockArticleInfo queryCurDayPunchClockArticleInfo(@Param("clockArticleTimeType") Integer clockArticleTimeType);

    /**
     * 随机获取打卡文章信息
     * @return
     */
    PunchClockArticleInfo queryRANDPunchClockArticleInfo(@Param("clockArticleTimeType")Integer clockArticleTimeType);



    /**
     * 根据ID打卡文章信息
     * @param clockArticleId
     * @return
     */
    PunchClockArticleInfo queryPunchClockArticleInfoById(@Param("clockArticleId") Integer clockArticleId);
}